package com.hqyj.springCloundAccount.server;

import com.hqyj.test.entity.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "client-test")
public interface TestFeignClient {
    /**
     * 127.0.0.1/api/city/2259 ----get
     * @param cityId
     * @return
     */
    @GetMapping("/api/test/city/{cityId}")
    City getCityByCityId(@PathVariable int cityId);




}
